
/**
 * Project Name: eig-moment
 * File Name:    StatisticsBackup.java
 * Package Name: com.dance.eig.moment.entity
 * Date:2017年12月19日下午2:29:18
 * Copyright (c) 2017, wangazhi@sohu.com All Rights Reserved.
 */

package com.aiyige.model.moment.backup;


/**
 * 功能: 统计信息备份. <br/>
 *
 * @author wangzhijun
 * @date 2018-01-15 19:33
 * @since JDK 1.8
 */
public class StatisticsBackup {

    /**
     * 点赞数
     */
    private Long praiseCount;
    /**
     * 收藏数
     */
    private Long favoriteCount;
    /**
     * 评论数
     */
    private Long commentCount;
    /**
     * 浏览数
     */
    private Long viewCount;
    /**
     * 销售数
     */
    private Long sellCount;
    /**
     * 报名学习人数
     */
    private Long studentCount;
    /**
     * 销售金额
     */
    private Double sellAmount;

    /**
     * 平台分成金额
     */
    private Double shareAmount;

    /**
     * 分享数
     */
    private Long shareCount;


    public StatisticsBackup() {
    }

    public Long getPraiseCount() {
        return praiseCount;
    }

    public void setPraiseCount(Long praiseCount) {
        this.praiseCount = praiseCount;
    }

    public Long getFavoriteCount() {
        return favoriteCount == null ? 0 : favoriteCount;
    }

    public void setFavoriteCount(Long favoriteCount) {
        this.favoriteCount = favoriteCount;
    }

    public Long getCommentCount() {
        return commentCount == null ? 0 : commentCount;
    }

    public void setCommentCount(Long commentCount) {
        this.commentCount = commentCount;
    }

    public Long getViewCount() {
        return viewCount == null ? 0 : viewCount;
    }

    public void setViewCount(Long viewCount) {
        this.viewCount = viewCount;
    }

    public Long getSellCount() {
        return sellCount == null ? 0 : sellCount;
    }

    public void setSellCount(Long sellCount) {
        this.sellCount = sellCount;
    }

    public Long getStudentCount() {
        return studentCount == null ? 0 : studentCount;
    }

    public void setStudentCount(Long studentCount) {
        this.studentCount = studentCount;
    }

    public Double getSellAmount() {
        return sellAmount;
    }

    public void setSellAmount(Double sellAmount) {
        this.sellAmount = sellAmount;
    }

    public Double getShareAmount() {
        return shareAmount;
    }

    public void setShareAmount(Double shareAmount) {
        this.shareAmount = shareAmount;
    }

    public Long getShareCount() {
        return shareCount;
    }

    public void setShareCount(Long shareCount) {
        this.shareCount = shareCount;
    }

    public StatisticsBackup(StatisticsBackup other) {
        if (other == null) {
            this.praiseCount = 0l;
            this.favoriteCount = 0l;
            this.commentCount = 0l;
            this.viewCount = 0l;
            this.sellCount = 0l;
            this.studentCount = 0l;
            this.sellAmount = 0d;
            this.shareAmount = 0d;
            this.shareCount = 0l;
        } else {
            this.praiseCount = other.praiseCount == null ? 0l : other.praiseCount;
            this.favoriteCount = other.favoriteCount == null ? 0l : other.favoriteCount;
            this.commentCount = other.commentCount == null ? 0l : other.commentCount;
            this.viewCount = other.viewCount == null ? 0l : other.viewCount;
            this.sellCount = other.sellCount == null ? 0l : other.sellCount;
            this.studentCount = other.studentCount == null ? 0l : other.studentCount;
            this.sellAmount = other.sellAmount == null ? 0d : other.sellAmount;
            this.shareAmount = other.shareAmount == null ? 0d : other.shareAmount;
            this.shareCount = other.shareCount == null ? 0l : other.shareCount;
        }
    }
}
  